﻿@model IEnumerable<Pyramid.Models.PayeeRecord>

<table class="table" width="100%" layouth="138">
	<thead>
		<tr>
			<th>@Html.DisplayNameFor(m=>m.PayerName)</th>
			<th>@Html.DisplayNameFor(m=>m.ProjectId)</th>
			<th>@Html.DisplayNameFor(m=>m.Amount)</th>
			<th>@Html.DisplayNameFor(m=>m.Instruction)</th>
			<th>@Html.DisplayNameFor(m=>m.FinanceAccount.AccountType)</th>
			<th>@Html.DisplayNameFor(m=>m.FinanceAccount.Account)</th>
			<th>@Html.DisplayNameFor(m=>m.ApplyUserId)</th>
			<th>@Html.DisplayNameFor(m=>m.ApplyUserName)</th>
			<th>@Html.DisplayNameFor(m=>m.ApplyTime)</th>
			<th>@Html.DisplayNameFor(m=>m.Status)</th>
			<th>@Html.DisplayNameFor(m=>m.Verify.VerifyTime)</th>
			<th>@Html.DisplayNameFor(m=>m.Verify.VerifyUserId)</th>
		</tr>
	</thead>
	<tbody>
		@foreach (var s in Model)
		{
			<tr target="id" rel="@s.Id">
				<td>@s.PayerName</td>
				<td>@s.Project.Name</td>
				<td>@s.Amount.ToString("C")</td>
				<td>@s.Instruction</td>
				<td>@s.FinanceAccount.AccountType</td>
				<td>@s.FinanceAccount.Account</td>
				<td>@s.ApplyUserId</td>
				<td>@s.ApplyUserName</td>
				<td>@s.ApplyTime.ToString("yyyy-MM-dd")</td>
				<td>@s.StatusString</td>
				<td>@(s.Verify == null ? "" : s.Verify.VerifyTime.ToString("yyyy-MM-dd"))</td>
				<td>@(s.Verify == null ? "" : s.Verify.VerifyUserId)</td>
			</tr>
		}
	</tbody>
</table>
